package com.lehoon.tomato.mapper;

import com.lehoon.tomato.model.User;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Repository
public interface UserMapper {

    User getUserById(Integer id);

    User getUserByOpenId(String openId);

    User getUserByUnionId(String unionId);

    User getUserByXcxOpenId(String xcxOpenId);

    int updateUserInfo(User user);

    int insertSimpleUser(User user);

    int updateUserAddress(User user);
}
